﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using 聚欣订单分析.Ling;

namespace 聚欣订单分析
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Page.Title = " 综合业务系统";
            }
            if (Session["qx"] == null)
            {
                Response.Redirect("login.aspx");
            }
            else
            {
                if (Session["qx"].ToString() == "0")
                {
                    divGly.Visible = true;
                    divQy.Visible = false;
                    divCw.Visible = false;
                    divRoot.Visible = false;
                }
                else if (Session["qx"].ToString() == "1")
                {
                    divCw.Visible = false;
                    divGly.Visible = false;
                    divQy.Visible = true;
                    divRoot.Visible = false;
                }
                else if (Session["qx"].ToString() == "2")
                {
                    divCw.Visible = true;
                    divGly.Visible = false;
                    divQy.Visible = false;
                    divRoot.Visible = false;
                }
                else if(Session["qx"].ToString() == "99")
                {
                    divCw.Visible = false;
                    divGly.Visible = false;
                    divQy.Visible = false;
                    divRoot.Visible = true;
                }
            }
            //System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CHS");
            // DdCsNum();
        }

        //private void DdCsNum()
        //{
        //    int? cs = 0;
        //    using (tbl_DDBDataContext tbl_DDBData = new tbl_DDBDataContext())
        //    {
        //        tbl_DDBData.up_csnum(ref cs);
        //    }
        //    if (cs>0)
        //    {
        //        lycs.Visible = true;
        //    }
        //}
    }
}
